package com.ninetaildemonfox.zdl.socialproject.data;


import android.content.Context;

import com.ninetaildemonfox.zdl.socialproject.data.callback.LoadTaskCallback;
import com.ninetaildemonfox.zdl.socialproject.data.entity.UserInfoBean;

import java.util.Map;

import rx.Subscription;

/**
 * @author: xiaohaibin.
 * @time: 2018/8/31
 * @mail:xhb_199409@163.com
 * @github:https://github.com/xiaohaibin
 * @describe: 数据层抽象接口，数据来源大体上分为三层：缓存，DB，网络
 */
public interface TasksDataSource {


    /**
     * 释放资源
     */
    void release();

    /**
     * 登录界面
     */
    Subscription login(Context me,String userName, String psd, LoadTaskCallback<String> getData);

}
